package com.liu.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liu.user.entity.base.UserPermissionInfo;
import com.liu.user.entity.dto.UserPermissionInfoDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiuChengLong
 * @since 2022-09-21
 */
public interface UserPermissionInfoMapper extends BaseMapper<UserPermissionInfo> {

    /**
     * 获取用户权限
     * @param userId 用户id
     * @return 权限信息
     */
    List<UserPermissionInfoDTO> getUserPermission(@Param("userId") String userId);

}
